<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'css/base.css' %}">
    <script src="{% static 'js/popper.min.js' %}"></script>
    <script src="{% static 'js/bootstrap.min.js' %}"></script>
    {% block head %}{% endblock %}
</head>
<body>
<header class="p-3 text-bg-light border-bottom mb-3">
    <div class="container">
        <div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
            <a href="/" class="d-flex align-items-center mb-2 mb-lg-0 text-white text-decoration-none">
                <img src="{% static 'img/logo.png' %}" alt="" height="20"> </img>
            </a>

            <ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
                <li><a href="#" class="nav-link px-2 text-secondary">首页</a></li>
                <li><a href="#" class="nav-link px-2 text-secondary">发布博客</a></li>

            </ul>

            <form class="col-12 col-lg-auto mb-3 mb-lg-0 me-lg-3" role="search">
                <input type="search" class="form-control" placeholder="搜索..." aria-label="Search">
            </form>

            <div class="text-end">
                <button type="button" class="btn btn-primary">登录</button>
                <button type="button" class="btn btn-warning">退出</button>
            </div>
        </div>
    </div>
</header>
<main class="container d-flex justify-content-center align-items-center vh-50">
    <div class="col-md-6 col-lg-4">
        <form class="bg-white p-4 rounded shadow">
            <h2 class="text-center mb-4">用户登录</h2>

            <!-- 用户名输入 -->
            <div class="mb-3">
                <label for="username" class="form-label">用户名</label>
                <input type="text" class="form-control" id="username" placeholder="请输入用户名" required>
            </div>

            <!-- 密码输入 -->
            <div class="mb-4">
                <label for="password" class="form-label">密码</label>
                <input type="password" class="form-control" id="password" placeholder="请输入密码" required>
            </div>

            <!-- 记住我复选框 -->
            <div class="mb-3 form-check">
                <input type="checkbox" class="form-check-input" id="remember">
                <label class="form-check-label" for="remember">记住我</label>
            </div>

            <!-- 提交按钮 -->
            <button type="submit" class="btn btn-primary w-100">登录</button>

            <!-- 辅助链接 -->
            <div class="mt-3 text-center">
                <a href="#" class="text-decoration-none">忘记密码？</a>
                <span class="mx-2">|</span>
                <a href="#" class="text-decoration-none">立即注册</a>
            </div>
        </form>
    </div>
</main>

</body>
</html>

